package com.xiongkw.dbutil;

public class Main {
    public static  void  main(String[] args) throws  Exception{
        String entityPackageName = "com.xhs.oa.sysformPrivilege.model";
        String mapperPackageName="com.xhs.oa.sysformPrivilege.mapper";
        GenSqlMapMysql sqlMapMysql = new GenSqlMapMysql(entityPackageName,mapperPackageName);
        String URL ="jdbc:mysql://sh-cdb-ep049n3j.sql.tencentcdb.com:63620/xhsoa?useUnicode=true&characterEncoding=UTF-8";
        String NAME = "root";
        String PASS = "PGdY%$gwhac3";
        sqlMapMysql.setDbUrl(URL);
        sqlMapMysql.setDbUserName(NAME);
        sqlMapMysql.setDbPassword(PASS);



        sqlMapMysql.setTablename("systerm_form_privilege");
        //生成 sqlmap、model、mapper
        sqlMapMysql.generateDbAccessFiles();

    }
}
